home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2004 E…tra 100 Bedste Programmer / K-CD_2004_Ekstra_100_Gratis_Programmer.iso / Windows / X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ MSO2003 WWD IE MRU 1.xpl < prev    next >
Encoding:
XSetup plugin  |  2004-01-28  |  2.1 KB  |  53 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="Program Options\Microsoft Office\MS Office 2003\Word"
  5. "NAME"="Most Recent Files URL Entries"
  6. "VERSION"="1.00"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Add URLs to recently used files"
  9. "DESCRIPTION 1"="When you are using Word, it will keep track of the documents you recently used by using a list called MRU (Most Recently Used files). By default, this list does also include Word documents (*.doc) that were opened using an URL, e.g. http://www.mycompany.test/Important.doc"
  10. "DESCRIPTION 2"="In some cases it might happen that when you close a document loaded by an URL, you are suddenly prompted for a username and password. This comes from the fact that Word wants to add the documents to the MRU list but needs write access to the document to do so."
  11. "DESCRIPTION 3"="Since nearly all web servers don't give anybody write access to their documents, Word assumes that you are not logged in and prompts you for a password."
  12. "DESCRIPTION 4"="By disabling this option, Word will no longer create an entry into the MRU list when a document is opened using an URL."
  13. "AUTHOR"="Xteq Systems"
  14. "CONTACTURL"="http://www.xteq.com"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All rights reserved."
  16. "COMMENT 1"="Visit http://www.x-setup.net/"
  17. "COMMENT 2"="See http://support.microsoft.com/?kbid=324328"
  18.  
  19.  
  20. sPCheck="HKCU\Software\Microsoft\Office\11.0\Word\"
  21.     sV1="HKCU\Software\Microsoft\Office\11.0\Word\Options\DontAddToMRUIfURL" 
  22.  
  23. Sub Plugin_Initialize 
  24. if RegPathExists(sPCheck) then
  25.    i=RegReadValue(sV1)
  26.    if IsEmpty(i)=true or i=0 then 
  27.       SetUIElement 1,true
  28.    end if
  29. else
  30.    Disable()
  31. end if
  32. END SUB
  33.  
  34. 'Called when the Plugin should validate the Data the user has entered
  35. SUB Plugin_CheckData(ElementIndex)
  36. END SUB
  37.  
  38. 'Called when the Plugin should apply the changes
  39. SUB Plugin_Apply(ElementIndex,ElementSubIndex)
  40.  b=GetUIElement(1)
  41.  if b=true then
  42.     if RegValueExists(sV1) then Call RegDeleteValue(sV1)
  43.  else
  44.     Call RegWriteValue(sV1,1,2)
  45.  end if
  46.  
  47.  
  48. END SUB
  49.  
  50. 'Called when the Plugin is about to be removed from memory
  51. SUB Plugin_Terminate
  52. END SUB
  53.